***** OPEN OUTPUT LOG FILE  *****


log using "C:\Users\gk57526\Dropbox\TELs & Income Inequality (Michelle Lofton)\Data\Final Dataset\December 2024\OUTPUT\Income Inequality.MANUSCRIPT ANALYSES.12-10-2024.smcl", replace 




**** STATA PROGRAM CODE TO ANALYZE DATA FOR "DECOMPOSING GOVERNMENT POLICYMAKING" PROJECT FROM EXISTING DATABASE: MANUSCRIPT ANALYSES ***








*** MANUSCRIPT ANALYSES:  INCLUDE ALL STATE PANELS [N = 49]: ALL REPORTED MODELS CONTAIN STATE AND YEAR UNIT EFFECTS, PLUS ADDITIONAL CONTROL COVARIATES [UNRESTRICTED MODEL SPECIFICATION] ***
***                     & DESCRIPTIVE STATISTICS IN TABLE A2 (APPENDIX A)    



*** NOTE: APPENDIX B CONDUCTS ANALYSES ON ALTERNATIVE MOPDEL SPECIFICATIONS OMITTING ALL ADDITIONAL CONTROL COVARIATES [FULLY RESTRICTED MODEL SPECIFICATION] & OMITTING ALL NON-SIGNIFICANT PREDICTOR ADDITIONAL CONTROL COVARIATES [PARTIALLY RESTRICTED MODEL SEPCIFICATION] *** 

***       APPENDIX C CONDUCTS ANALYSES ON STATE PANELS WITH FIXED FISCAL (TEL) RULES [N = 37]

***       APPENDIX D CONDUCTS ANALYSES ON ALTERNATIVE INCOME INEQUALITY MEASURES [GINI, REAL MEAN DEVIATION, TOP 0.1% & TOP 0.01%]  

***       APPENDIX E CONDUCTS ANALYSES ON ALTERNATIVE TEL TYPES OF MEASURES [LEGISLATIVE SUPERMAJORITY OVERRIDE PROVISION DISTINCTIONS & ALTERNATIVE TEL SOURCES: EXPENDTIURE ONLY ***  
***                VERSUS "OTHER" INCLUDING REVENUE, COMBINATION REVENUE & EXPENDITURE, & APPROPRIATION TEL RESTRICTIONS]











*** Retrieve "Income Inequality Database.BASE VARIABLES.12-10-2024.dta" & Save as "MANUSCRIPT ANALYSES.12-10.2024.dta" ***



use "C:\Users\gk57526\Dropbox\TELs & Income Inequality (Michelle Lofton)\Data\Final Dataset\December 2024\DATA\Income Inequality Database.BASE VARIABLES.12-10-2024.dta", replace
*
*
*
save "C:\Users\gk57526\Dropbox\TELs & Income Inequality (Michelle Lofton)\Data\Final Dataset\December 2024\DATA\Income Inequality Database.MANUSCRIPT ANALYSES.12-10-2024.dta", replace






*** SET DATA TO PANEL STRUCTURE  ***


xtset fips year, yearly







*** APPENDIX A: DESCRIPTIVE STATISTICS [TABLE A2] ***


*** OVERALL SAMPLE ***
sum Atkin05_pct Theil_pct Top10_adj Top1_adj  policytreat_1  policytreat_2  policy_updated_economic  rpcpi  ur  poverty_r  rdf_pc  C_IT  bbr_strong_rub


*** DIVIDED PARTISAN CONTROL: NO TEL SUBSAMPLE ***
sum Atkin05_pct Theil_pct Top10_adj Top1_adj  policytreat_1  policytreat_2  policy_updated_economic  rpcpi  ur  poverty_r  rdf_pc  C_IT  bbr_strong_rub if policytreat_1==0 & policytreat_2==0


*** DIVIDED PARTISAN CONTROL: TEL SUBSAMPLE ***
sum Atkin05_pct Theil_pct Top10_adj Top1_adj  policytreat_1  policytreat_2  policy_updated_economic  rpcpi  ur  poverty_r  rdf_pc  C_IT  bbr_strong_rub if policytreat_1==1 & policytreat_2==0




*** UNIFIED DEMOCRATIC PARTISAN CONTROL: NO TEL SUBSAMPLE ***
sum Atkin05_pct Theil_pct Top10_adj Top1_adj  policytreat_1  policytreat_2  policy_updated_economic  rpcpi  ur  poverty_r  rdf_pc  C_IT  bbr_strong_rub if policytreat_1==0 & policytreat_2==1


*** UNIFIED DEMOCRATIC PARTISAN CONTROL: TEL SUBSAMPLE ***
sum Atkin05_pct Theil_pct Top10_adj Top1_adj  policytreat_1  policytreat_2  policy_updated_economic  rpcpi  ur  poverty_r  rdf_pc  C_IT  bbr_strong_rub if policytreat_1==1 & policytreat_2==1




*** UNIFIED REPUBLICAN PARTISAN CONTROL: NO TEL SUBSAMPLE ***
sum Atkin05_pct Theil_pct Top10_adj Top1_adj  policytreat_1  policytreat_2  policy_updated_economic  rpcpi  ur  poverty_r  rdf_pc  C_IT  bbr_strong_rub if policytreat_1==0 & policytreat_2==2


*** UNIFIED REPUBLICAN PARTISAN CONTROL: TEL SUBSAMPLE ***
sum Atkin05_pct Theil_pct Top10_adj Top1_adj  policytreat_1  policytreat_2  policy_updated_economic  rpcpi  ur  poverty_r  rdf_pc  C_IT  bbr_strong_rub if policytreat_1==1 & policytreat_2==2



**** CORRELATION BETWEEN STAE ECONOMIC POLICY LIBERALISM & OVERALL STATE POLICY LIBERALISM MEASURES [CAUGHEY & WARSHAW 2016, 2021] **** 

correlate policy_updated_economic  policy_updated





***********************************************************************************************************************************************************************************************************
***********************************************************************************************************************************************************************************************************
*********************************************************************************************************************************************************************************************************** 
***********************************************************************************************************************************************************************************************************
***********************************************************************************************************************************************************************************************************
*********************************************************************************************************************************************************************************************************** 
***********************************************************************************************************************************************************************************************************
***********************************************************************************************************************************************************************************************************
*********************************************************************************************************************************************************************************************************** 





*** 0.1 SUMMARY INCOME INEQUALITY OUTCOME MEASURES [ATKINSON & THEIL INEQUALITY INDICES WHICH ARE BOTH DECOMPOSABLE AND WEAK AND STRONG PRINCIPLE OF TRANSFERS] *** 

** DATA FROM MARK FRANK [SEE CODEBOOK FOR FORMAL DOCUMENTATION] ***



* Bivariate Correlations Among Outcome Variables (Within-State Differences) & Descriptive Statistics *

correlate  wAtkin05  wTheil  
*
*
sum  wAtkin05  wTheil , detail
*
*



*** 0.2 AFFLUENT CITIZENS' INCOME-SHARE BASED INCOME INEQUALITY OUTCOME MEASURES [Top10_adj Top5_adj Top1_adj Top05_adj Top01_adj Top001_adj] *** 


* Bivariate Correlations Among Outcome Variables (Within-State Differences) & Descriptive Statistics *

correlate wTop10_adj  wTop1_adj   
*
*
sum  wTop10_adj  wTop1_adj, detail

*
*
*



*** 0.3 BREAKDOWNS AMONG TREATMENT VARIABLES BY EACH OF THE SIX CELLS [TREATMENT CONDITIONS] -- AND ALSO BY TELs and UNIFIED PARTISAN CONTROL OF STATE GOVENRMENTS *** 


* Tabulate with Percentages of Panel Observations for Various Treatment Variables (TEL indicator & UPC/DPC indicators) and Conditions (k*j = 2 * 3 = 6) *

tab policytreat_1 policytreat_2, cell





*********************************************************************************************************************************************************************************************************** 
***********************************************************************************************************************************************************************************************************
***********************************************************************************************************************************************************************************************************
*********************************************************************************************************************************************************************************************************** 
*********************************************************************************************************************************************************************************************************** 
***********************************************************************************************************************************************************************************************************
***********************************************************************************************************************************************************************************************************
*********************************************************************************************************************************************************************************************************** 





*** FIGURE 1: BAR CHART OF RELATIVE FREQUENCY/PROPORTION [LEFT Y-AXIS] AND FREQUENCY/COUNTS [RIGHT Y-AXIS] FOR THE FOLLOWING THREE SETS OF GROUPINGS ***
** (1) NO TEL/ TEL: 2 BARS; (2) DIVIDED PARTISAN CONTROL/UNIFIED REPUBLICAN PARTISAN CONTROL//UNIFIED DEMOCRATIC PARTISAN CONTROL: 3 BARS; (3) "POLICYTREAT_3" VARIABLE BELOW: 6 BARS  


**# FIGURE 1
*** FIGURE 1: BAR CHART OF RELATIVE FREQUENCY/PROPORTION [LEFT Y-AXIS] AND FREQUENCY/COUNTS [RIGHT Y-AXIS] FOR THE FOLLOWING THREE SETS OF GROUPINGS ***
** (1) NO TEL/ TEL: 2 BARS; (2) DIVIDED PARTISAN CONTROL/UNIFIED REPUBLICAN PARTISAN CONTROL//UNIFIED DEMOCRATIC PARTISAN CONTROL: 3 BARS; (3) "POLICYTREAT_3" VARIABLE BELOW: 6 BARS  

tab policytreat_1, matcell(policytreat1)
mat policytreat1 = policytreat1, policytreat1/r(N)*100, (1\2)
mat list policytreat1

tab policytreat_2, matcell(policytreat2)
mat policytreat2 = policytreat2, policytreat2/r(N)*100,  (4\5\6)
mat list policytreat2

tab policytreat_3, matcell(policytreat3)
mat policytreat3 = policytreat3, policytreat3/r(N)*100, (8\9\10\11\12\13)
mat list policytreat3

matrix row3= ., ., 3
matrix row7= ., ., 7

matrix fig1 = policytreat1\row3\policytreat2\row7\policytreat3
matrix colnames fig1= freq proportion row

putexcel set "C:\Users\gk57526\Dropbox\TELs & Income Inequality (Michelle Lofton)\Data\Final Dataset\December 2024\GRAPHICS\FIGURE 1.xlsx", sheet("figure1") replace
putexcel A1= matrix(fig1), colnames 



** GRAPHICS CODE FOR FIGURE 1 **


* FIGURE 1 BAR CHART OF RELATIVE FREQUENCY/PROPORTION [LEFT Y-AXIS] AND FREQUENCY/COUNTS [RIGHT Y-AXIS] FOR THE FOLLOWING THREE SETS OF GROUPINGS *
import excel "C:\Users\gk57526\Dropbox\TELs & Income Inequality (Michelle Lofton)\Data\Final Dataset\December 2024\GRAPHICS\FIGURE 1.xlsx", firstrow clear

twoway (bar proportion row,  yaxis(1) ylabel(, axis(1) labsize(small) noticks) ysc(r(0 60)) mlabel(freq) mlabcolor(black) ytitle("Proportion (%)", margin(medium) size(medsmall)))  ///
(scatter freq row,  yaxis(2) ylabel(, axis(2) labsize(small) noticks) ytitle("Frequency (Counts)", axis(2) size(medsmall)) msymbol(none) ), ///
xlabel(1 "No TEL" 2 "TEL" 4 "Divided Partisan Control" 5 "Unified Democratic Control" 6 "Unified Republican Control" 8 "Divided Partisan Control & No TEL" 9 "Divided Partisan Control & TEL" 10 "Unified Democratic Control & No TEL" 11 "Unified Democratic Control & TEL" 12 "Unified Republican Control & No TEL" 13 "Unified Republican Control & TEL" , angle(45) noticks labsize(small)) ///
title("{bf: Figure 1: Distribution of No TEL/TEL and Partisan Control in the American States, 1986 - 2020}", size(medsmall) span margin(b=5)) graphregion(margin(l+10 r+10)) xsize(7) legend(off) xtitle("")

graph save "C:\Users\gk57526\Dropbox\TELs & Income Inequality (Michelle Lofton)\Data\Final Dataset\December 2024\GRAPHICS\FIGURE 1.gph", replace






*********************************************************************************************************************************************************************************************************** 
***********************************************************************************************************************************************************************************************************
***********************************************************************************************************************************************************************************************************
*********************************************************************************************************************************************************************************************************** 
*********************************************************************************************************************************************************************************************************** 
***********************************************************************************************************************************************************************************************************
***********************************************************************************************************************************************************************************************************
*********************************************************************************************************************************************************************************************************** 




*** Retrieve "Income Inequality Database.MANUSCRIPT ANALYSES.12-10-2024.dta" ***

use "C:\Users\gk57526\Dropbox\TELs & Income Inequality (Michelle Lofton)\Data\Final Dataset\December 2024\DATA\Income Inequality Database.MANUSCRIPT ANALYSES.12-10-2024.dta", replace




*********************************************************************************************************************************************************************************************************** 
***********************************************************************************************************************************************************************************************************
***********************************************************************************************************************************************************************************************************
*********************************************************************************************************************************************************************************************************** 
*********************************************************************************************************************************************************************************************************** 
***********************************************************************************************************************************************************************************************************
***********************************************************************************************************************************************************************************************************
*********************************************************************************************************************************************************************************************************** 



*** WITHIN-STATE VARIATION OF DEPENDENT VARIABLES UNDER EACH PARTISAN CONTROL REGIME [DPC / UDC / URC] ***

sum wAtkin05_pct  wTheil_pct wTop10_adj  wTop1_adj if policytreat_2==0, detail
*
sum wAtkin05_pct  wTheil_pct wTop10_adj  wTop1_adj if policytreat_2==1, detail
*
sum wAtkin05_pct  wTheil_pct wTop10_adj  wTop1_adj if policytreat_2==2, detail

*
*
*

*** WITHIN-STATE VARIATION OF DEPENDENT VARIABLES UNDER EACH FISCAL REGIME [NO TEL / TEL] ***
 
sum wAtkin05_pct  wTheil_pct wTop10_adj  wTop1_adj if policytreat_1==0, detail
*
sum wAtkin05_pct  wTheil_pct wTop10_adj  wTop1_adj if policytreat_1==1, detail
*





** DECOMPOSING MAXIMUM REGIME DIIFFERENCES: UNIFIED REPUBLICAN PARTISAN CONTROL & TEL MINUS UNIFIED DEMOCRATIC CONTROL & NO TEL  **


* NOTE: OBTAIN STANDARD DEVIATION FOR W_TOP1_ADJ [BY COMMON SUBSAMPLE] *

sum wAtkin05_pct  wTheil_pct wTop10_adj  wTop1_adj  if policytreat_2==2 & policytreat_1==1 |  policytreat_2==1 & policytreat_1==0



*
*
*



************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************ 
************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* 




*** TABLE 2 [ATKINSON & THEIL INEQUALITY INDEX MEASURES]:     POLICYTREAT_ 1 * POLICYTREAT_2 [ALTERNATIVE COMBINATIONS OF FISCAL RULE & PARTISAN CONTROL OF GOVERNMENT CATEs]:  
***             UNIFIED DEMOCRATIC PARTISAN CONTROL/UNIFIED REPUBLICAN PARTISAN CONTROL/DIVIDED PARTISAN CONTROL & TEL/NO TEL COMBINATION SIX-CATEGORY INDICATOR 
***             [BASELINE INTERCEPT: DPC_NO TEL] -- SUMMARY INCOME INEQUALITY MEASURE: ATKINSON & THEIL INDEX   


***                     POLICYTREAT_1==0: [NO TEL]; POLICYTREAT_1==1 [TEL]  /////  POLICYTREAT_2==0: [DPC]; POLICYTREAT_2==1 [UDC]; POLICYTREAT_2==2 [URC]         ***

*
*
*




*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** 



* ATKINSON INDEX MEASURE [M1] -- BOTH STATE & YEAR FEs; ADD FULL SET OF CONTROL COVARIATES [UNRESTRICTED MODEL SPECIFICATION] *

regress Atkin05_pct  i.policytreat_1##i.policytreat_2  policy_updated_economic  rpcpi  ur  poverty_r  rdf_pc  C_IT  bbr_strong_rub   i.fips i.year,  vce (cluster fips)
*
*
*
estat ic



* COMPUTE LINEAR COMBINATION REGRESSION COEFFICIENTS FOR UNIFIED DEMOCRATIC CONTROL: TEL & UNIFIED REPUBLICAN CONTROL: TEL * 



** UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL [TOTAL EFFECT]: UDC | NO TEL + UDC | TEL *

lincom  1.policytreat_2  + 1.policytreat_1#1.policytreat_2 

*


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL [TOTAL EFFECT]: URC | NO TEL + URC | TEL *

lincom  2.policytreat_2  + 1.policytreat_1#2.policytreat_2 

*



********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** 


*  STANDARDIZED TREATMENT EFFECTS ARE CALCULATED AS THE PERCENTAGE OF EACH RESPECTIVE OUTCOME VARIABLE'S WITHIN STANDARD DEVIATION PER MODE BETWEEN EACH PARTISAN CONTROL GROUP)*100" * 
 

 * NOTE: STANDARD DEVIATION FOR W_ATKIN_PCT [BY COMMON SUBSAMPLE FOR POLICYTREAT_2: UDC/DPC/URC] *

 
 

** BETWEEN TEL -- NO TEL, WITHIN PARTISAN CONTROL REGIME STANDARDIZED TREATMENT EFFECTS [DECOMPOSING TEL REGIME EFFECTS]  **
*
*

** UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *

lincom  ((1.policytreat_2  + 1.policytreat_1#1.policytreat_2  - 1.policytreat_2) / 2.990745)*100


** DIVIDED PARTISAN CONTROL | TEL - DIVIDED PARTISAN CONTROL | NO TEL *

lincom  (1.policytreat_1 /3.006592)*100


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED REPUBLICAN PARTISAN CONTROL | NO TEL *

lincom  ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2   - 2.policytreat_2) /  2.494657)*100


*********************************************************************************************************************************************************************


** WITHIN NO TEL / TEL, BETWEEN PARTISAN CONTROL TREATMENT EFFECTS [DECOMPOSING PARTISAN REGIME EFFECTS] **

* NOTE: STANDARD DEVIATION FOR W_ATKIN_PCT [BY COMMON SUBSAMPLE FOR POLICY TREAT_1: NO TEL / TEL] *
*
*

** DIVIDED PARTISAN CONTROL | NO TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom ((1.policytreat_2) /  3.100438) *100

** UNIFIED REPUBLICAN PARTISAN CONTROL  | NO TEL -  DIVIDED PARTISAN CONTROL | NO TEL *
lincom (2.policytreat_2 /  3.100438) *100


** UNIFIED REPUBLICAN PARTISAN CONTROL | NO TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom ((2.policytreat_2 - 1.policytreat_2) /  3.100438) *100

*
*
*

** DIVIDED PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL *
lincom ((1.policytreat_1  -  1.policytreat_2  - 1.policytreat_1#1.policytreat_2) / 2.792338) *100

** UNIFIED REPUBLICAN PARTISAN CONTROL  | TEL -  DIVIDED PARTISAN CONTROL | TEL *
lincom ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2   -  1.policytreat_1) / 2.792338) *100


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL *
lincom ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2  -  1.policytreat_2  - 1.policytreat_1#1.policytreat_2) / 2.792338) *100



*********************************************************************************************************************************************************************


** DECOMPOSING MAXIMUM REGIME DIIFFERENCES: UNIFIED REPUBLICAN PARTISAN CONTROL & TEL MINUS UNIFIED DEMOCRATIC CONTROL & NO TEL  **


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2 -  1.policytreat_2) /  2.695103) *100





************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** 




* THEIL INDEX MEASURE [M2] -- BOTH STATE & YEAR FEs; ADD FULL SET OF CONTROL COVARIATES [UNRESTRICTED MODEL SPECIFICATION] *

regress Theil_pct  i.policytreat_1##i.policytreat_2  policy_updated_economic  rpcpi  ur  poverty_r  rdf_pc  C_IT  bbr_strong_rub   i.fips i.year,  vce (cluster fips)
*
*
*
estat ic


* COMPUTE LINEAR COMBINATION REGRESSION COEFFICIENTS FOR UNIFIED DEMOCRATIC CONTROL: TEL & UNIFIED REPUBLICAN CONTROL: TEL * 



** UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL [TOTAL EFFECT]: UDC | NO TEL + UDC | TEL *

lincom  1.policytreat_2  + 1.policytreat_1#1.policytreat_2 

*


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL [TOTAL EFFECT]: URC | NO TEL + URC | TEL *

lincom  2.policytreat_2  + 1.policytreat_1#2.policytreat_2 

*



********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** 



*  STANDARDIZED TREATMENT EFFECTS ARE CALCULATED AS THE PERCENTAGE OF EACH RESPECTIVE OUTCOME VARIABLE'S WITHIN STANDARD DEVIATION PER MODE BETWEEN EACH PARTISAN CONTROL GROUP)*100" * 
 
* NOTE: STANDARD DEVIATION FOR W_THEIL_PCT [BY COMMON SUBSAMPLE FOR POLICYTREAT_2: UDC/DPC/URC] *


** BETWEEN TEL -- NO TEL, WITHIN PARTISAN CONTROL REGIME STANDARDIZED TREATMENT EFFECTS [DECOMPOSING TEL REGIME EFFECTS]  **
*
*

** UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *

lincom  ((1.policytreat_2  + 1.policytreat_1#1.policytreat_2   - 1.policytreat_2) / 12.86384)*100


** DIVIDED PARTISAN CONTROL | TEL - DIVIDED PARTISAN CONTROL | NO TEL *

lincom  (1.policytreat_1 / 13.09788)*100


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED REPUBLICAN PARTISAN CONTROL | NO TEL *

lincom  ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2  - 2.policytreat_2) /  12.20539)*100


*********************************************************************************************************************************************************************


** WITHIN NO TEL / TEL, BETWEEN PARTISAN CONTROL TREATMENT EFFECTS [DECOMPOSING PARTISAN REGIME EFFECTS] **

* NOTE: STANDARD DEVIATION FOR W_THEIL_PCT [BY COMMON SUBSAMPLE FOR POLICY TREAT_1: NO TEL / TEL] *
*
*

** DIVIDED PARTISAN CONTROL | NO TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom (1.policytreat_2 /  14.15536)*100

** UNIFIED REPUBLICAN PARTISAN CONTROL  | NO TEL -  DIVIDED PARTISAN CONTROL | NO TEL *
lincom (2.policytreat_2 /  14.15536)*100


** UNIFIED REPUBLICAN PARTISAN CONTROL | NO TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom ((2.policytreat_2 - 1.policytreat_2) /  14.15536)*100

*
*
*

** DIVIDED PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL *
lincom ((1.policytreat_1  -  1.policytreat_2  - 1.policytreat_1#1.policytreat_2) / 12.22296)*100

** UNIFIED REPUBLICAN PARTISAN CONTROL  | TEL -  DIVIDED PARTISAN CONTROL | TEL *
lincom ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2  -  1.policytreat_1) / 12.22296)*100


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL *
lincom ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2  -  1.policytreat_2  - 1.policytreat_1#1.policytreat_2) / 12.22296)*100



*********************************************************************************************************************************************************************


** DECOMPOSING MAXIMUM REGIME DIIFFERENCES: UNIFIED REPUBLICAN PARTISAN CONTROL & TEL MINUS UNIFIED DEMOCRATIC CONTROL & NO TEL  **


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2 -  1.policytreat_2) /  11.92036) *100






************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************





*** TABLE 2 [TOP 10% & 1% INCOME SHARE MEASURES]:     POLICYTREAT_ 1 * POLICYTREAT_2 [ALTERNATIVE COMBINATIONS OF FISCAL RULE & PARTISAN CONTROL OF GOVERNMENT CATEs]:  
***              UNIFIED DEMOCRATIC PARTISAN CONTROL/UNIFIED REPUBLICAN PARTISAN CONTROL/DIVIDED PARTISAN CONTROL & TEL/NO TEL COMBINATION SIX-CATEGORY INDICATOR 
***             [BASELINE INTERCEPT: DPC_NO TEL] -- SUMMARY INCOME INEQUALITY MEASURE: ATKINSON & THEIL INDEX 


***                     POLICYTREAT_1==0: [NO TEL]; POLICYTREAT_1==1 [TEL]  /////  POLICYTREAT_2==0: [DPC]; POLICYTREAT_2==1 [UDC]; POLICYTREAT_2==2 [URC]         ***

*
*
*



*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** 



* TOP 10% INCOME SHARE MEASURE [M3]  -- BOTH STATE & YEAR FEs; ADD FULL SET OF CONTROL COVARIATES [UNRESTRICTED MODEL SPECIFICATION] *

regress Top10_adj  i.policytreat_1##i.policytreat_2  policy_updated_economic  rpcpi  ur  poverty_r  rdf_pc  C_IT  bbr_strong_rub   i.fips i.year,  vce (cluster fips)
*
*
*
estat ic


* COMPUTE LINEAR COMBINATION REGRESSION COEFFICIENTS FOR UNIFIED DEMOCRATIC CONTROL: TEL & UNIFIED REPUBLICAN CONTROL: TEL * 



** UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL [TOTAL EFFECT]: UDC | NO TEL + UDC | TEL *

lincom  1.policytreat_2  + 1.policytreat_1#1.policytreat_2 

*


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL [TOTAL EFFECT]: URC | NO TEL + URC | TEL *

lincom  2.policytreat_2  + 1.policytreat_1#2.policytreat_2 

*



********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* 


*  STANDARDIZED TREATMENT EFFECTS ARE CALCULATED AS THE PERCENTAGE OF EACH RESPECTIVE OUTCOME VARIABLE'S WITHIN STANDARD DEVIATION PER MODE BETWEEN EACH PARTISAN CONTROL GROUP)*100" * 
 
* NOTE: STANDARD DEVIATION FOR W_TOP10_ADJ [BY COMMON SUBSAMPLE FOR POLICYTREAT_2: UDC/DPC/URC] *


** BETWEEN TEL -- NO TEL, WITHIN PARTISAN CONTROL REGIME STANDARDIZED TREATMENT EFFECTS [DECOMPOSING TEL REGIME EFFECTS]  **
*
*

** UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *

lincom  ((1.policytreat_2  + 1.policytreat_1#1.policytreat_2   - 1.policytreat_2) / 3.836504)*100


** DIVIDED PARTISAN CONTROL | TEL - DIVIDED PARTISAN CONTROL | NO TEL *

lincom  (1.policytreat_1 /  3.835625)*100


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED REPUBLICAN PARTISAN CONTROL | NO TEL *

lincom  ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2  - 2.policytreat_2) /  3.49529)*100


*********************************************************************************************************************************************************************


** WITHIN NO TEL / TEL, BETWEEN PARTISAN CONTROL TREATMENT EFFECTS [DECOMPOSING PARTISAN REGIME EFFECTS] **

* NOTE: STANDARD DEVIATION FOR W_TOP1_ADJ [BY COMMON SUBSAMPLE FOR POLICY TREAT_1: NO TEL / TEL] *
*
*

** DIVIDED PARTISAN CONTROL | NO TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom ((1.policytreat_2) / 3.769897) *100

** UNIFIED REPUBLICAN PARTISAN CONTROL  | NO TEL -  DIVIDED PARTISAN CONTROL | NO TEL *
lincom ((2.policytreat_2) /  3.769897) *100


** UNIFIED REPUBLICAN PARTISAN CONTROL | NO TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom ((2.policytreat_2 - 1.policytreat_2) /  3.769897) *100

*
*
*

** DIVIDED PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL *
lincom ((1.policytreat_1  -  1.policytreat_2  - 1.policytreat_1#1.policytreat_2) / 3.937305) *100

** UNIFIED REPUBLICAN PARTISAN CONTROL  | TEL -  DIVIDED PARTISAN CONTROL | TEL *
lincom ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2 - 1.policytreat_1) / 3.937305) *100


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL *
lincom ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2 - 1.policytreat_2  - 1.policytreat_1#1.policytreat_2) / 3.937305)*100



*********************************************************************************************************************************************************************



** DECOMPOSING MAXIMUM REGIME DIIFFERENCES: UNIFIED REPUBLICAN PARTISAN CONTROL & TEL MINUS UNIFIED DEMOCRATIC CONTROL & NO TEL  **


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2 -  1.policytreat_2) / 3.836578) *100




************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************


*
*
*



* TOP 1% INCOME SHARE MEASURE [M4] -- BOTH STATE & YEAR FEs; ADD FULL SET OF CONTROL COVARIATES [UNRESTRICTED MODEL SPECIFICATION] *

regress Top1_adj  i.policytreat_1##i.policytreat_2  policy_updated_economic  rpcpi  ur  poverty_r  rdf_pc  C_IT  bbr_strong_rub   i.fips i.year,  vce (cluster fips)
*
*
*
estat ic


* COMPUTE LINEAR COMBINATION REGRESSION COEFFICIENTS FOR UNIFIED DEMOCRATIC CONTROL: TEL & UNIFIED REPUBLICAN CONTROL: TEL * 



** UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL [TOTAL EFFECT]: UDC | NO TEL + UDC | TEL *

lincom  1.policytreat_2  + 1.policytreat_1#1.policytreat_2 

*


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL [TOTAL EFFECT]: URC | NO TEL + URC | TEL *

lincom  2.policytreat_2  + 1.policytreat_1#2.policytreat_2 

*



********************************************************************************************************************************************************************************************************************************************************************************************************************* 



*  STANDARDIZED TREATMENT EFFECTS ARE CALCULATED AS THE PERCENTAGE OF EACH RESPECTIVE OUTCOME VARIABLE'S WITHIN STANDARD DEVIATION PER MODE BETWEEN EACH PARTISAN CONTROL GROUP)*100" * 
 
* NOTE: STANDARD DEVIATION FOR W_TOP1_ADJ [BY COMMON SUBSAMPLE FOR POLICYTREAT_2: UDC/DPC/URC] *


** BETWEEN TEL -- NO TEL, WITHIN PARTISAN CONTROL REGIME STANDARDIZED TREATMENT EFFECTS [DECOMPOSING TEL REGIME EFFECTS]  **
*
*

** UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *

lincom  ((1.policytreat_2  + 1.policytreat_1#1.policytreat_2  - 1.policytreat_2) / 2.863502)*100


** DIVIDED PARTISAN CONTROL | TEL - DIVIDED PARTISAN CONTROL | NO TEL *

lincom  (1.policytreat_1  /  3.135176)*100


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED REPUBLICAN PARTISAN CONTROL | NO TEL *

lincom  ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2  - 2.policytreat_2) /  2.604946)*100


*********************************************************************************************************************************************************************



** WITHIN NO TEL / TEL, BETWEEN PARTISAN CONTROL TREATMENT EFFECTS [DECOMPOSING PARTISAN REGIME EFFECTS] **

* NOTE: STANDARD DEVIATION FOR W_TOP1_ADJ [BY COMMON SUBSAMPLE FOR POLICY TREAT_1: NO TEL / TEL] *
*
*

** DIVIDED PARTISAN CONTROL | NO TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom (1.policytreat_2 / 3.024421) *100

** UNIFIED REPUBLICAN PARTISAN CONTROL  | NO TEL -  DIVIDED PARTISAN CONTROL | NO TEL *
lincom (2.policytreat_2 /  3.024421) *100


** UNIFIED REPUBLICAN PARTISAN CONTROL | NO TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom ((2.policytreat_2 - 1.policytreat_2) /  3.024421) *100

*
*
*

** DIVIDED PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL *
lincom ((1.policytreat_1  -  1.policytreat_2  - 1.policytreat_1#1.policytreat_2) / 2.948421) *100

** UNIFIED REPUBLICAN PARTISAN CONTROL  | TEL -  DIVIDED PARTISAN CONTROL | TEL *
lincom ((1.policytreat_1#2.policytreat_2  -  1.policytreat_1) / 2.948421) *100


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | TEL *
lincom ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2  -  1.policytreat_2  - 1.policytreat_1#1.policytreat_2) / 2.948421) *100




*********************************************************************************************************************************************************************


** DECOMPOSING MAXIMUM REGIME DIIFFERENCES: UNIFIED REPUBLICAN PARTISAN CONTROL & TEL MINUS UNIFIED DEMOCRATIC CONTROL & NO TEL  **


** UNIFIED REPUBLICAN PARTISAN CONTROL | TEL - UNIFIED DEMOCRATIC PARTISAN CONTROL | NO TEL *
lincom ((2.policytreat_2  + 1.policytreat_1#2.policytreat_2 -  1.policytreat_2) /  2.748644) *100








************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************






save "C:\Users\gk57526\Dropbox\TELs & Income Inequality (Michelle Lofton)\Data\Final Dataset\December 2024\DATA\Income Inequality Database.MANUSCRIPT ANALYSES.12-10-2024.dta", replace




log close
 

 
 
